package com.game.my.model;

import com.eova.common.base.BaseModel;

public class MyMesage extends BaseModel<MyMesage> {
	/**
	 * TODO（用一句话描述这个变量表示什么）
	 */

	private static final long serialVersionUID = 1L;

	public static final MyMesage dao = new MyMesage();

	/**
	 * 我的消息
	 * 
	 * @param uid
	 * @return
	 */
	public MyMesage findByopId(Object userId) {
		StringBuffer sql = new StringBuffer();
		sql.append("SELECT id,openId,nickName,headImgUrl,CASE sex WHEN 0 THEN '男' ELSE '女'END sex,address,level,status,leable,remark,createTime");
		sql.append(" FROM game_user WHERE id=?");
		return this.findFirst(sql.toString(), userId);
	}

}
